﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>众聚福管理后台</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <script src="../js/boot.js" type="text/javascript"></script>
    <script src="../js/core.js" type="text/javascript"></script>
    <script src="../js/index.js" type="text/javascript"></script>
    <style type="text/css">
    	html, body{
	        margin:0;padding:0;border:0;width:100%;height:100%;overflow:hidden;
	    }
	    .header
	    {
	        background:url(../images/header.gif) repeat-x;
	    }
	    .header div
	    {
	        font-family:'Trebuchet MS',Arial,sans-serif;
	        font-size:25px;line-height:60px;padding-left:10px;font-weight:bold;color:#333;        
	    }    
	    body .header .topNav
	    {
	        position:absolute;right:8px;top:10px;        
	        font-size:12px;
	        line-height:25px;
	    }
	    .header .topNav a
	    {
	        text-decoration:none;
	        color:#222;
	        font-weight:normal;
	        font-size:12px;
	        line-height:25px;
	        margin-left:3px;
	        margin-right:3px;
	    }
	    .header .topNav a:hover
	    {
	        text-decoration:underline;
	        color:Blue;
	    }   
	     .mini-layout-region-south img
	    {
	        vertical-align:top;
	    }
    </style>
</head>
<body>
<div class="mini-layout" style="width:100%;height:100%;">
    <div title="north" region="north" class="header" bodyStyle="overflow:hidden;" height="80" showHeader="false" showSplit="false">
        <div>众聚福后台管理后台V1.0</div>
        <div class="topNav">    
            <a class="mini-button mini-button-iconTop" iconCls="icon-add" onclick="onQuickClick" plain="true">快捷</a>    
            <a class="mini-button mini-button-iconTop" iconCls="icon-edit" onclick="pageFirst"  plain="true" >首页</a>        
            <a class="mini-button mini-button-iconTop" iconCls="icon-date" onclick="onClick"  plain="true" >消息</a>        
            <a class="mini-button mini-button-iconTop" iconCls="icon-edit" onclick="onClick"  plain="true" >设置</a>        
            <a class="mini-button mini-button-iconTop" iconCls="icon-close" onclick="close"  plain="true" >关闭</a> 
        </div>

        <div style="position:absolute;right:12px;bottom:1px;font-size:12px;line-height:25px;font-weight:normal;">
            皮肤：
            <select id="selectSkin" onchange="onSkinChange(this.value)" style="width:100px;margin-right:10px;" >
                <option value="">Default</option>
                <option value="blue">Blue</option>
                <option value="pure">Pure</option>
                <option value="gray">Gray</option>                
                <option value="olive2003">Olive2003</option>
                <option value="blue2003">Blue2003</option>
                <option value="blue2010">Blue2010</option>
                <option value="bootstrap">Bootstrap</option>
                <option value="metro">metro</option>
                <option value="metro-green">metro-green</option>
                <option value="metro-orange">metro-orange</option>
                <option value="jqueryui-cupertino">jqueryui-cupertino</option>
                <option value="jqueryui-smoothness">jqueryui-smoothness</option>
            </select>
            尺寸：
            <select id="selectMode" onchange="onModeChange(this.value)" style="width:100px;" >
                <option value="">Default</option>
                <option value="medium" >Medium</option>
                <option value="large">Large</option>                
            </select>
        </div>
    </div>
    <div showHeader="false" region="south" style="border:0;text-align:center;" height="25" showSplit="false">
        Copyright © 蓝鲸科技有限公司 
    </div>
    <div region="west" title="快速导航" showHeader="true" bodyStyle="padding-left:1px;" showSplitIcon="true" width="230" minWidth="100" maxWidth="350">
        <ul id="leftTree" class="mini-tree" url="" style="width:100%;height:100%;" 
                    showTreeIcon="true" textField="text" idField="id" resultAsTree="false"  
                    onnodeselect="onNodeSelect" onloaderror = "onLoadError">        
        </ul> 
    </div>
    <div showCollapseButton="false" style="border:0;">
		<!--Tabs-->
		<div id="mainTabs" class="mini-tabs" activeIndex="0" style="width:100%;height:100%;" plain="false" onactivechanged="onTabsActiveChanged">
            <div title="众聚福管理首页" url="" ></div><!--这块主要就是界面的获取 http://ljkj.zhongjufu123.com  -->
        </div>
     </div>
</div>
</body>
</html>

<script type="text/javascript" >
	mini.parse();
	
	$(function(){
		var TuserID = getCookie("TuserID");
		if(TuserID == null || TuserID ==""){
			alert("您尚未登录，请登录。");
			window.location.href= getRootPath()+"/pages/access/admin_login.html";
		}else{
			var src = getRootPath()+ "/rest/right/rightByUser";
			var params = {"userId":TuserID};
			params = JSON.stringify(params)
			 $.ajax({
	 			type : 'post',
	 			url : src,
	 			data : params, // 传给action的参数
	 			async:false,
	 			success : function(data) {
	 				if(data.errCode=="0" || data.errCode == null){
	 					var leftTree = mini.get("leftTree");
	 					leftTree.loadList(data,"id","pid");
	 					
	 				}else if(data.errCode == "1"){
	 					alert(data.errMsg);
	 					window.location.href= getRootPath()+"/pages/access/admin_login.html";
	 				}
	 			},
	 			error: function(XMLHttpRequest, textStatus, errorThrown) {
	 				 alert(XMLHttpRequest.status);
	 				 alert(XMLHttpRequest.responseText);
	 			}
	 		});
		}
	});
</script>

